<?php

class ServicesController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
    	//require_once "Services/WebServices.php";
    	$server = new Zend_Rest_Server();
    	$server->setClass('Model_Services_Services');
    	$server->handle(array('method' => 'getArtists'));
    }


}
/*
class WebServices
{
	
	public function getArtists()
	{
		$xml = '<?xml version="1.0" standalone="yes"?><response>';
		$xml .= '<artists><artist><name>Poison</name>';
		$xml .= '<genre>Rock</genre></artist></artists>';
		$xml .= '</response>';
		return simplexml_load_string($xml);
	}
}*/